package com.itbupt.infrastructure.persistent.dao;

import com.itbupt.infrastructure.persistent.po.RaffleActivity;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author dingchang
 * @Date 2025/3/30 15:48
 * @Description: 抽奖活动表Dao
 */

@Mapper
public interface IRaffleActivityDao {

    /**
     * 查询抽奖活动配置信息
     * @param activityId
     * @return
     */
    RaffleActivity queryRaffleActivityByActivityId(Long activityId);

    /**
     * 查询抽策略ID
     * @param activityId 活动ID
     * @return
     */
    Long queryStrategyIdByActivityId(Long activityId);

    /**
     * 查询活动ID
     * @param strategyId
     * @return
     */
    Long queryActivityIdByStrategyId(Long strategyId);

}
